<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input
          v-model="queryParams.totalPage"
          placeholder="请输入共几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input
          v-model="queryParams.page"
          placeholder="请输入第几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input
          v-model="queryParams.jilbh"
          placeholder="请输入记录编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input
          v-model="queryParams.jiancdwmc"
          placeholder="请输入检测单位名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程名称" prop="gongcmc">
        <el-input
          v-model="queryParams.gongcmc"
          placeholder="请输入工程名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input
          v-model="queryParams.gongcbwyt"
          placeholder="请输入工程部位/用途"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input
          v-model="queryParams.yangpmc"
          placeholder="请输入样品名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input
          v-model="queryParams.yangpbh"
          placeholder="请输入样品编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input
          v-model="queryParams.yangpsl"
          placeholder="请输入样品数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input
          v-model="queryParams.yangpzt"
          placeholder="请输入样品状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-input
          v-model="queryParams.yangpsj"
          placeholder="请输入样品时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input
          v-model="queryParams.shiyjcrq"
          placeholder="请输入试验检测日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input
          v-model="queryParams.shiytjwd"
          placeholder="请输入试验条件温度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input
          v-model="queryParams.shiytjsd"
          placeholder="请输入试验条件湿度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input
          v-model="queryParams.jiancyj"
          placeholder="请输入检测依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input
          v-model="queryParams.pandyj"
          placeholder="请输入判定依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据ids" prop="jiancyjIds">
        <el-input
          v-model="queryParams.jiancyjIds"
          placeholder="请输入检测依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据ids" prop="pandyjIds">
        <el-input
          v-model="queryParams.pandyjIds"
          placeholder="请输入判定依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input
          v-model="queryParams.zhuyyqsbmcjbh"
          placeholder="请输入主要仪器设备名称及编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设备id逗号分隔" prop="shebIds">
        <el-input
          v-model="queryParams.shebIds"
          placeholder="请输入设备id逗号分隔"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input
          v-model="queryParams.fujsm"
          placeholder="请输入附加声明"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试件数量" prop="shijsl">
        <el-input
          v-model="queryParams.shijsl"
          placeholder="请输入试件数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试件尺寸" prop="shijcc">
        <el-input
          v-model="queryParams.shijcc"
          placeholder="请输入试件尺寸"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试件制备方法" prop="shijzbff">
        <el-input
          v-model="queryParams.shijzbff"
          placeholder="请输入试件制备方法"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成型压实度" prop="chengxysd">
        <el-input
          v-model="queryParams.chengxysd"
          placeholder="请输入成型压实度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="加载速率" prop="jiazsl">
        <el-input
          v-model="queryParams.jiazsl"
          placeholder="请输入加载速率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最大干密度" prop="zuidgmd">
        <el-input
          v-model="queryParams.zuidgmd"
          placeholder="请输入最大干密度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最佳含水率" prop="zuijhsl">
        <el-input
          v-model="queryParams.zuijhsl"
          placeholder="请输入最佳含水率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="稳定剂剂量" prop="wendjjl">
        <el-input
          v-model="queryParams.wendjjl"
          placeholder="请输入稳定剂剂量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="矿料掺配比例" prop="kuanglcpbl">
        <el-input
          v-model="queryParams.kuanglcpbl"
          placeholder="请输入矿料掺配比例"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="制件日期" prop="zhijrq">
        <el-date-picker clearable
          v-model="queryParams.zhijrq"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择制件日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="试验日期" prop="shiyrq">
        <el-date-picker clearable
          v-model="queryParams.shiyrq"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择试验日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="养生龄期" prop="lingq">
        <el-input
          v-model="queryParams.lingq"
          placeholder="请输入养生龄期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="平均抗压强度" prop="pingjkyqd">
        <el-input
          v-model="queryParams.pingjkyqd"
          placeholder="请输入平均抗压强度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="保证率" prop="baozl">
        <el-input
          v-model="queryParams.baozl"
          placeholder="请输入保证率"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="保证率系数Za" prop="baozlxsza">
        <el-input
          v-model="queryParams.baozlxsza"
          placeholder="请输入保证率系数Za"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="偏差系数Cv" prop="piancxscv">
        <el-input
          v-model="queryParams.piancxscv"
          placeholder="请输入偏差系数Cv"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最大值" prop="zuidz">
        <el-input
          v-model="queryParams.zuidz"
          placeholder="请输入最大值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最小值" prop="zuixz">
        <el-input
          v-model="queryParams.zuixz"
          placeholder="请输入最小值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="标准差S" prop="biaozcs">
        <el-input
          v-model="queryParams.biaozcs"
          placeholder="请输入标准差S"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="代表值" prop="daibz">
        <el-input
          v-model="queryParams.daibz"
          placeholder="请输入代表值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="wjjhlWdclwcxkyqdBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true"/>
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="工程名称" align="center" prop="gongcmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" />
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="检测依据ids" align="center" prop="jiancyjIds" />
      <el-table-column label="判定依据ids" align="center" prop="pandyjIds" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="设备id逗号分隔" align="center" prop="shebIds" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="试件数量" align="center" prop="shijsl" />
      <el-table-column label="试件尺寸" align="center" prop="shijcc" />
      <el-table-column label="试件制备方法" align="center" prop="shijzbff" />
      <el-table-column label="成型压实度" align="center" prop="chengxysd" />
      <el-table-column label="加载速率" align="center" prop="jiazsl" />
      <el-table-column label="最大干密度" align="center" prop="zuidgmd" />
      <el-table-column label="最佳含水率" align="center" prop="zuijhsl" />
      <el-table-column label="稳定剂剂量" align="center" prop="wendjjl" />
      <el-table-column label="矿料掺配比例" align="center" prop="kuanglcpbl" />
      <el-table-column label="制件日期" align="center" prop="zhijrq" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zhijrq, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="试验日期" align="center" prop="shiyrq" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.shiyrq, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="养生龄期" align="center" prop="lingq" />
      <el-table-column label="平均抗压强度" align="center" prop="pingjkyqd" />
      <el-table-column label="保证率" align="center" prop="baozl" />
      <el-table-column label="保证率系数Za" align="center" prop="baozlxsza" />
      <el-table-column label="偏差系数Cv" align="center" prop="piancxscv" />
      <el-table-column label="最大值" align="center" prop="zuidz" />
      <el-table-column label="最小值" align="center" prop="zuixz" />
      <el-table-column label="标准差S" align="center" prop="biaozcs" />
      <el-table-column label="代表值" align="center" prop="daibz" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['report_wjjhl:wjjhlWdclwcxkyqdBsInfo:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改无机结合料稳定材料无侧限抗压强度试验检测记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="工程名称" prop="gongcmc">
          <el-input v-model="form.gongcmc" placeholder="请输入工程名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-input v-model="form.yangpsj" placeholder="请输入样品时间" />
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="检测依据ids" prop="jiancyjIds">
          <el-input v-model="form.jiancyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="判定依据ids" prop="pandyjIds">
          <el-input v-model="form.pandyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="设备id逗号分隔" prop="shebIds">
          <el-input v-model="form.shebIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="试件数量" prop="shijsl">
          <el-input v-model="form.shijsl" placeholder="请输入试件数量" />
        </el-form-item>
        <el-form-item label="试件尺寸" prop="shijcc">
          <el-input v-model="form.shijcc" placeholder="请输入试件尺寸" />
        </el-form-item>
        <el-form-item label="试件制备方法" prop="shijzbff">
          <el-input v-model="form.shijzbff" placeholder="请输入试件制备方法" />
        </el-form-item>
        <el-form-item label="成型压实度" prop="chengxysd">
          <el-input v-model="form.chengxysd" placeholder="请输入成型压实度" />
        </el-form-item>
        <el-form-item label="加载速率" prop="jiazsl">
          <el-input v-model="form.jiazsl" placeholder="请输入加载速率" />
        </el-form-item>
        <el-form-item label="最大干密度" prop="zuidgmd">
          <el-input v-model="form.zuidgmd" placeholder="请输入最大干密度" />
        </el-form-item>
        <el-form-item label="最佳含水率" prop="zuijhsl">
          <el-input v-model="form.zuijhsl" placeholder="请输入最佳含水率" />
        </el-form-item>
        <el-form-item label="稳定剂剂量" prop="wendjjl">
          <el-input v-model="form.wendjjl" placeholder="请输入稳定剂剂量" />
        </el-form-item>
        <el-form-item label="矿料掺配比例" prop="kuanglcpbl">
          <el-input v-model="form.kuanglcpbl" placeholder="请输入矿料掺配比例" />
        </el-form-item>
        <el-form-item label="制件日期" prop="zhijrq">
          <el-date-picker clearable
            v-model="form.zhijrq"
            type="datetime"
            value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择制件日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="试验日期" prop="shiyrq">
          <el-date-picker clearable
            v-model="form.shiyrq"
            type="datetime"
            value-format="yyyy-MM-dd HH:mm:ss"
            placeholder="请选择试验日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="养生龄期" prop="lingq">
          <el-input v-model="form.lingq" placeholder="请输入养生龄期" />
        </el-form-item>
        <el-form-item label="平均抗压强度" prop="pingjkyqd">
          <el-input v-model="form.pingjkyqd" placeholder="请输入平均抗压强度" />
        </el-form-item>
        <el-form-item label="保证率" prop="baozl">
          <el-input v-model="form.baozl" placeholder="请输入保证率" />
        </el-form-item>
        <el-form-item label="保证率系数Za" prop="baozlxsza">
          <el-input v-model="form.baozlxsza" placeholder="请输入保证率系数Za" />
        </el-form-item>
        <el-form-item label="偏差系数Cv" prop="piancxscv">
          <el-input v-model="form.piancxscv" placeholder="请输入偏差系数Cv" />
        </el-form-item>
        <el-form-item label="最大值" prop="zuidz">
          <el-input v-model="form.zuidz" placeholder="请输入最大值" />
        </el-form-item>
        <el-form-item label="最小值" prop="zuixz">
          <el-input v-model="form.zuixz" placeholder="请输入最小值" />
        </el-form-item>
        <el-form-item label="标准差S" prop="biaozcs">
          <el-input v-model="form.biaozcs" placeholder="请输入标准差S" />
        </el-form-item>
        <el-form-item label="代表值" prop="daibz">
          <el-input v-model="form.daibz" placeholder="请输入代表值" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listWjjhlWdclwcxkyqdBsInfo, getWjjhlWdclwcxkyqdBsInfo, delWjjhlWdclwcxkyqdBsInfo, addWjjhlWdclwcxkyqdBsInfo, updateWjjhlWdclwcxkyqdBsInfo } from "@/api/report_wjjhl/wjjhlWdclwcxkyqdBsInfo";

export default {
  name: "WjjhlWdclwcxkyqdBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 无机结合料稳定材料无侧限抗压强度试验检测记录表格数据
      wjjhlWdclwcxkyqdBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        shijsl: undefined,
        shijcc: undefined,
        shijzbff: undefined,
        chengxysd: undefined,
        jiazsl: undefined,
        zuidgmd: undefined,
        zuijhsl: undefined,
        wendjjl: undefined,
        kuanglcpbl: undefined,
        zhijrq: undefined,
        shiyrq: undefined,
        lingq: undefined,
        pingjkyqd: undefined,
        baozl: undefined,
        baozlxsza: undefined,
        piancxscv: undefined,
        zuidz: undefined,
        zuixz: undefined,
        biaozcs: undefined,
        daibz: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询无机结合料稳定材料无侧限抗压强度试验检测记录列表 */
    getList() {
      this.loading = true;
      listWjjhlWdclwcxkyqdBsInfo(this.queryParams).then(response => {
        this.wjjhlWdclwcxkyqdBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        shijsl: undefined,
        shijcc: undefined,
        shijzbff: undefined,
        chengxysd: undefined,
        jiazsl: undefined,
        zuidgmd: undefined,
        zuijhsl: undefined,
        wendjjl: undefined,
        kuanglcpbl: undefined,
        zhijrq: undefined,
        shiyrq: undefined,
        lingq: undefined,
        pingjkyqd: undefined,
        baozl: undefined,
        baozlxsza: undefined,
        piancxscv: undefined,
        zuidz: undefined,
        zuixz: undefined,
        biaozcs: undefined,
        daibz: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.excelId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加无机结合料稳定材料无侧限抗压强度试验检测记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids
      getWjjhlWdclwcxkyqdBsInfo(excelId).then(response => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改无机结合料稳定材料无侧限抗压强度试验检测记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateWjjhlWdclwcxkyqdBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          } else {
            addWjjhlWdclwcxkyqdBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal.confirm('是否确认删除无机结合料稳定材料无侧限抗压强度试验检测记录编号为"' + excelIds + '"的数据项？').then(() => {
        this.loading = true;
        return delWjjhlWdclwcxkyqdBsInfo(excelIds);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('report_wjjhl/wjjhlWdclwcxkyqdBsInfo/export', {
        ...this.queryParams
      }, `wjjhlWdclwcxkyqdBsInfo_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
